#ifndef __ERRORCODE_H_
#define __ERRORCODE_H_



#define NETDEBUG_SUCCESS            0

#define NETDEBUG_SOCKET_ERR         -1000
#define NETDEBUG_IP_ERR             -1001
#define NETDEBUG_PORT_ERR           -1002
#define NETDEBUG_BIND_ERR           -1003
#define NETDEBUG_LISTEN_ERR         -1004

#define NETDEBUG_SOCKET_ERR_STR     "Create socket error"
#define NETDEBUG_IP_ERR_STR         "The ip address is unlawful"
#define NETDEBUG_PORT_ERR_STR       "The port is unlawful"
#define NETDEBUG_BIND_ERR_STR       "The ip and port has been use"
#define NETDEBUG_LISTEN_ERR_STR     "Unknow error in start server"

#endif // !__ERRORCODE_H_